package com.wgspring.service;

import com.wgspring.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public boolean checkLoginUser(String name,String password){
        return password.equals(userMapper.selectPasswordByName(name));
    }


}
